﻿<div style="float:left;">
	<div style="width:365px; text-align:right">glavna</div>
	<div id="pasteMask">&nbsp;</div>
	<input type="button" class="pasteData" value="paste" onclick="pasteKomdelData(this,{{$komitent_id}})" />
	<input type="button" class="copyData" value="copy" onclick="copyKomdelData(this)" />
	<input type="buttton" id="delCPData" onclick="clearCPData(this)" title="Izbriši iskopirane podatke" />
	<ul id="komitent_delatnosti">
		<li id="del0"></li>
	</ul>
	<div style="float:left;">
		<input type="button" id="delatnostAddBtn" title="Dodaj delatnost" onClick="komitentAddDelatnost(this)" value="dodaj" />
		<br clear="all" />
		<input type="button" id="delatnostRemoveBtn" title="Obriši delatnost" onClick="if(confirm('Da li želite da obrišete označenu delatnost?')){komitentRemoveDelatnost()}" value="obriši" />
		<label for="komitent_del_add" style="width:auto; margin:-25px 0px 0px 10px;">Delatnosti:</label><br clear="all" />
		<select name="komitent_del_add" id="komitent_del_add" style="margin:-40px 0px 0px 46px;">
			<option value="-1">---</option>
			{{%loop start del_id}}
			<option value="{{$del_id}}" parent="{{$del_parent}}" title="{{$del_id}}&nbsp;-&nbsp;{{$del_name}}">{{$del_name}}</option>
			{{%loop end}}
		</select>
	</div>
</div>
<br clear="all" />
<div id="komitent_delatnosti_data">
	{{$del_template}}
	<!-- DELATNOSTI DATA -->
	{{$dels_data}}
</div>
<script>
	document.error = Array();
	var ul = document.getElementById("komitent_delatnosti");
	var lis = ul.getElementsByTagName("li");
	if(lis.length){
		showDataForDelatnost(lis[0]);
	}
</script>